package net.starwifi.duobao.web;

import net.starwifi.duobao.mvc.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 微信活动
 * Created by Administrator on 2015/8/14.
 */
@Controller("apiwoController")
@RequestMapping("/wo")
public class wocnController extends BaseController {


    /**
     * 首页
     */
    @RequestMapping(value = "/duobao", method = RequestMethod.GET)
    public String index(Model model,String cp,String a,String mobile) {
        if(cp!=null){
          cp=cp;
        }else{
           cp="202";
        }
        model.addAttribute("cp",cp);

        if(cp!=null){
            model.addAttribute("a",a);
        }
        if(cp!=null){
            model.addAttribute("mobile",mobile);
        }
        return "redirect:/dbs/index.html?cp="+cp;
    }

}
